import { InjectionKey } from 'vue'
import { useStore as useBaseStore, Store } from 'vuex'
import { AllStateTypes } from '../store/types'
export const key: InjectionKey<Store<AllStateTypes>> = Symbol('v3-store')

export function useStore<T = AllStateTypes>(): Store<T> {
  return useBaseStore<T>(key)
}
